const Router = require("koa-router");
const HttpExceptionError = require("../../middlewares/http-exception");
const Redis = require("../../config/redis") // 你的redis配置文件路径

let router = new Router();
const redis = new Redis()

router.get("/", async (ctx) => {
  let title = ctx.state.userInfo;
  let arr = ["刚刚", "他娃儿噶", "大幅度"];
  
  await ctx.render("index", {
    //别忘了加 await
    title: title,
    arr: arr,
  });
});

module.exports = router;
